package cn.sangedon.review.common.domain.data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 交易日历
 * @TableName tb_trading_date
 */
@TableName(value ="tb_trading_date")
@Data
public class TradingDate implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 交易日字符串，格式为:yyyy-MM-dd
     */
    @TableField(value = "trading_date")
    private String tradingDate;

    /**
     * 一周的第几天，周日是第一天
     */
    @TableField(value = "week_day")
    private Integer weekDay;

    /**
     * 交易日时间Long类型毫秒值
     */
    @TableField(exist = false)
    private Long timeMillis;
}